package com.crm.business.crm.mapper;


import com.crm.common.crm.common.CrmModel;
import com.crm.common.crm.entity.BO.CrmRoiPutinPageBO;
import com.crm.common.crm.entity.PO.CrmRefund;
import com.crm.business.servlet.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 回款表 Mapper 接口
 * </p>
 *
 * @author zhangzhiwei
 * @since 2020-05-28
 */
public interface CrmRefundMapper extends BaseMapper<CrmRefund> {
    /**
     * 通过id查询回款数据
     *
     * @param id id
     * @param userId 用户ID
     * @return data
     */
    public CrmModel queryById(@Param("id") Integer id, @Param("userId") Long userId);

    List<Map<String,Object>> queryPutinStatis(@Param("data") List<Integer> customerIds,@Param("userIds") List<Long> userIdList);

    BigDecimal queryRefundMoneyByData(@Param("data") CrmRoiPutinPageBO crmRoiPutinPageBO);

}
